home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / includ~1.z / includ~1 / strings.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-24  |  2.6 KB  |  66 lines

  1. /* The <string.h> header contains prototypes for the string handling 
  2.  * functions.
  3.  */
  4.  
  5. #ifndef _STRING_H
  6. #define _STRING_H
  7.  
  8. #ifndef NULL
  9. #define NULL    ((void *) 0)
  10. #endif
  11.  
  12. #ifndef _SIZE_T
  13. #define _SIZE_T
  14. typedef unsigned int size_t;    /* type returned by sizeof */
  15. #endif
  16.  
  17. /* Function Prototypes. */
  18. #ifndef _ANSI_H
  19. #include <ansi.h>
  20. #endif
  21.  
  22. _PROTOTYPE( void *memcpy, (void *__s1, const void *__s2, size_t __n)        );
  23. _PROTOTYPE( void *memmove, (void *__s1, const void *__s2, size_t __n)       );
  24. _PROTOTYPE( char *strcpy, (char *__s1, const char *__s2)             );
  25. _PROTOTYPE( char *strncpy, (char *__s1, const char *__s2, size_t __n)         );
  26. _PROTOTYPE( char *strcat, (char *__s1, const char *__s2)             );
  27. _PROTOTYPE( char *strncat, (char *__s1, const char *__s2, size_t __n)         );
  28. _PROTOTYPE( int memcmp, (const void *__s1, const void *__s2, size_t __n)     );
  29. _PROTOTYPE( int strcmp, (const char *__s1, const char *__s2)             );
  30. _PROTOTYPE( int strcoll, (const char *__s1, const char *__s2)             );
  31. _PROTOTYPE( int strncmp, (const char *__s1, const char *__s2, size_t __n)    );
  32. _PROTOTYPE( size_t strxfrm, (char *__s1, const char *__s2, size_t __n)         );
  33. _PROTOTYPE( void *memchr, (const void *__s, int __c, size_t __n)         );
  34. _PROTOTYPE( char *strchr, (const char *__s, int __c)                 );
  35. _PROTOTYPE( size_t strcspn, (const char *__s1, const char *__s2)         );
  36. _PROTOTYPE( char *strpbrk, (const char *__s1, const char *__s2)                  );
  37. _PROTOTYPE( char *strrchr, (const char *__s, int __c)                 );
  38. _PROTOTYPE( size_t strspn, (const char *__s1, const char *__s2)                  );
  39. _PROTOTYPE( char *strstr, (const char *__s1, const char *__s2)                  );
  40. _PROTOTYPE( char *strtok, (char *__s1, const char *__s2)             );
  41. _PROTOTYPE( void *memset, (void *__s, int __c, size_t __n)             );
  42. _PROTOTYPE( char *strerror, ( int __errnum)                     );
  43. _PROTOTYPE( size_t strlen, (const char *__s)                     );
  44.  
  45. #ifndef __STRICT_ANSI__
  46. /* 
  47.  * from henry spencers string lib
  48.  *  these dont appear in ansi draft sec 4.11
  49.  */
  50. _PROTOTYPE( void *memccpy, (void * dst, _CONST void * src, int ucharstop, size_t size) );
  51. _PROTOTYPE( char *strlwr, (char *) );
  52. _PROTOTYPE( char *strrev, (char *) );
  53. _PROTOTYPE( char *strdup, (_CONST char *s) );
  54.  
  55. /*
  56.  * V7 and BSD compatibility.
  57.  */
  58. _PROTOTYPE( char *index, (_CONST char *s, int charwanted) );
  59. _PROTOTYPE( char *rindex, (_CONST char *s, int charwanted) );
  60. _PROTOTYPE(void bcopy, (_CONST void *, void *, long)    );
  61. _PROTOTYPE(int  bcmp,  (_CONST void *, _CONST void *, long)    );
  62. _PROTOTYPE(void bzero, (void *, long)        );
  63. #endif /* __STRICT_ANSI__ */
  64.  
  65. #endif /* _STRING_H */
  66.